# $Id: PKGBUILD 137844 2011-09-12 03:00:03Z eric $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: tardo <tardo@nagi-fanboi.net>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=mod_dnssd
pkgver=0.6
pkgrel=4
pkgdesc="Zeroconf module for Apache2"
arch=('i686' 'x86_64')
url="http://0pointer.de/lennart/projects/mod_dnssd"
license=('APACHE')
depends=('avahi' 'apache')
source=(http://0pointer.de/lennart/projects/$pkgname/${pkgname}-${pkgver}.tar.gz)
md5sums=('bed3d95a98168bf0515922d1c05020c5')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --disable-lynx
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -m755 -d "${pkgdir}/usr/lib/httpd/modules"
  install -m755 src/.libs/mod_dnssd.so "${pkgdir}/usr/lib/httpd/modules/"
}
